<?php /* Smarty version 2.6.20, created on 2017-08-06 11:54:57
         compiled from product_list.htm */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'truncate', 'product_list.htm', 129, false),array('modifier', 'get_spot_name', 'product_list.htm', 131, false),array('modifier', 'date_format', 'product_list.htm', 135, false),)), $this); ?>
﻿
    <link href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/templates/default/css/buying.css?t=<?php echo $this->_tpl_vars['now_time']; ?>
" rel="stylesheet" media="screen" type="text/css" />
    <link href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/templates/default/css/gynei.css?t=<?php echo $this->_tpl_vars['now_time']; ?>
" rel="stylesheet" media="screen" type="text/css" />
        <!-- 中间内容 -->
        <div class="g-bd" data-image="" data-color="" style="background-position: 50% 50px;">
            <div class="g-bdc">
                <div class="g-mn">
                    <!--[if IE]>
                    <style>
                    .line2-left {
                      width: 1000px;
                      float: left;
                    }
                    .m-box-col2y {
                      background-image: url('');
                      background-repeat: repeat-y;
                      background-position: 966px 0;
                      zoom: 1;
                    }
                    </style>
                    <![endif]--> 
                    <div class="m-box m-box-col2yp m-box-goods">
                        <div class="hd">       
                            <p class="m-crm">
                                <a class="grown1" href="/">首页</a>
                                <span class="arrow1">&gt;</span>
                                <a href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/?m=product&s=list&id=<?php echo $this->_tpl_vars['cat']['catid']; ?>
"><?php if (! empty ( $this->_tpl_vars['cat']['cat'] )): ?><?php echo $this->_tpl_vars['cat']['cat']; ?>
<?php else: ?>热门推荐<?php endif; ?></a>
                            </p>
                    <div class="clean_float"></div>

                            <div class="search-filter">
                                <div class="filter">
                                    <div class="filter_item">
                                        <div class="filter_name">城市：</div>
                                        <div class="filter_all">
                                            <a href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/?m=product&s=list" <?php if ($this->_tpl_vars['get_city'] == ''): ?>  class="on" <?php endif; ?> >全部</a><span class="line">|</span></div>
                                        <div class="filter_con">
                                            <?php $_from = $this->_tpl_vars['all_city']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['vo']):
?>
                                            <?php if ($this->_tpl_vars['vo']['is_city'] == 1): ?>
                                            <a href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/?m=product&s=list&city=<?php echo $this->_tpl_vars['key']; ?>
" <?php if ($this->_tpl_vars['key'] == $this->_tpl_vars['get_city']): ?>  class="on" <?php endif; ?>  ><?php echo $this->_tpl_vars['vo']['name']; ?>
</a><span class="line">|</span>
                                            <?php else: ?>
                                            <a href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/?m=product&s=list&province=<?php echo $this->_tpl_vars['key']; ?>
" <?php if ($this->_tpl_vars['key'] == $this->_tpl_vars['get_city']): ?>  class="on" <?php endif; ?>  ><?php echo $this->_tpl_vars['vo']['name']; ?>
</a><span class="line">|</span>
                                            <?php endif; ?>

                                            <?php endforeach; endif; unset($_from); ?>
                                        </div>

                                    </div>
                                </div>
                            </div>
                            <div class="search-filter">
                                <div class="filter">
                                    <div class="filter_item">
                                        <div class="filter_name">类型：</div>
                                        <div class="filter_all">
                                            <?php if (! empty ( $this->_tpl_vars['is_province'] )): ?>
                                            <a href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/?m=product&s=list<?php if (! empty ( $this->_tpl_vars['get_city'] )): ?>&province=<?php echo $this->_tpl_vars['get_city']; ?>
 <?php endif; ?>"  <?php if (empty ( $this->_tpl_vars['cat']['catid'] )): ?>  class="on" <?php endif; ?> >全部</a><span class="line">|</span></div>
                                            <?php else: ?>
                                            <a href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/?m=product&s=list<?php if (! empty ( $this->_tpl_vars['get_city'] )): ?>&city=<?php echo $this->_tpl_vars['get_city']; ?>
 <?php endif; ?>"  <?php if (empty ( $this->_tpl_vars['cat']['catid'] )): ?>  class="on" <?php endif; ?> >全部</a><span class="line">|</span></div>
                                            <?php endif; ?>

                                        <div class="filter_con">
                                            <?php $_from = $this->_tpl_vars['cat_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['vo']):
?>
                                            <?php if (! empty ( $this->_tpl_vars['is_province'] )): ?>
                                            <a href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/?m=product&s=list&id=<?php echo $this->_tpl_vars['vo']['catid']; ?>
<?php if (! empty ( $this->_tpl_vars['get_city'] )): ?>&province=<?php echo $this->_tpl_vars['get_city']; ?>
 <?php endif; ?>" <?php if ($this->_tpl_vars['catname'][0] == $this->_tpl_vars['vo']['catid'] || strstr ( $this->_tpl_vars['id'] , $this->_tpl_vars['vo']['catid'] )): ?>  class="on" <?php endif; ?>   ><?php echo $this->_tpl_vars['vo']['cat']; ?>
</a><span class="line">|</span>
                                            <?php else: ?>
                                            <a href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/?m=product&s=list&id=<?php echo $this->_tpl_vars['vo']['catid']; ?>
<?php if (! empty ( $this->_tpl_vars['get_city'] )): ?>&city=<?php echo $this->_tpl_vars['get_city']; ?>
 <?php endif; ?>" <?php if ($this->_tpl_vars['catname'][0] == $this->_tpl_vars['vo']['catid'] || strstr ( $this->_tpl_vars['id'] , $this->_tpl_vars['vo']['catid'] )): ?>  class="on" <?php endif; ?>   ><?php echo $this->_tpl_vars['vo']['cat']; ?>
</a><span class="line">|</span>
                                            <?php endif; ?>
                                            <?php endforeach; endif; unset($_from); ?>
                                        </div>	

                                    </div>
                                </div>
                            </div>
                           <?php if (! empty ( $this->_tpl_vars['sub_cat'] )): ?>
                            <div class="search-filter">
                                <div class="filter">
                                    <div class="filter_item">
                                        <div class="filter_name">子类型：</div>
                                        <div class="filter_con" style="padding-left: 0px;">
                                            <?php $_from = $this->_tpl_vars['sub_cat']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['vo']):
?>
                                            <?php if (! empty ( $this->_tpl_vars['is_province'] )): ?>
                                            <a href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/?m=product&s=list&id=<?php echo $this->_tpl_vars['vo']['catid']; ?>
<?php if (! empty ( $this->_tpl_vars['get_city'] )): ?>&province=<?php echo $this->_tpl_vars['get_city']; ?>
 <?php endif; ?>"  <?php if ($this->_tpl_vars['cat']['catid'] == $this->_tpl_vars['vo']['catid']): ?>  class="on" <?php endif; ?>  ><?php echo $this->_tpl_vars['vo']['cat']; ?>
</a><span class="line">|</span>
                                            <?php else: ?>
                                            <a href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/?m=product&s=list&id=<?php echo $this->_tpl_vars['vo']['catid']; ?>
<?php if (! empty ( $this->_tpl_vars['get_city'] )): ?>&city=<?php echo $this->_tpl_vars['get_city']; ?>
 <?php endif; ?>"  <?php if ($this->_tpl_vars['cat']['catid'] == $this->_tpl_vars['vo']['catid']): ?>  class="on" <?php endif; ?>  ><?php echo $this->_tpl_vars['vo']['cat']; ?>
</a><span class="line">|</span>
                                            <?php endif; ?>
                                            <?php endforeach; endif; unset($_from); ?>
                                        </div>

                                    </div>
                                </div>
                            </div>
                            <?php endif; ?>

                            <div class="search-filter">
                                <div class="filter">
                                    <div class="filter_item">
                                        <div class="filter_name">其他：</div>
                                        <div class="filter_all">
                                            <?php if (! empty ( $this->_tpl_vars['is_province'] )): ?>
                                            <a href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/?m=product&s=list<?php if (! empty ( $this->_tpl_vars['get_city'] )): ?>&province=<?php echo $this->_tpl_vars['get_city']; ?>
<?php endif; ?><?php if (! empty ( $this->_tpl_vars['id'] )): ?>&id=<?php echo $this->_tpl_vars['id']; ?>
<?php endif; ?>" <?php if (empty ( $this->_tpl_vars['orderby'] )): ?>  class="on" <?php endif; ?>   >全部</a><span class="line">|</span>
                                            <a href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/?m=product&s=list&orderby=3<?php if (! empty ( $this->_tpl_vars['get_city'] )): ?>&province=<?php echo $this->_tpl_vars['get_city']; ?>
<?php endif; ?><?php if (! empty ( $this->_tpl_vars['id'] )): ?>&id=<?php echo $this->_tpl_vars['id']; ?>
<?php endif; ?> " <?php if ($this->_tpl_vars['orderby'] == 3): ?>  class="on" <?php endif; ?>   >更新时间</a><span class="line">|</span>
                                            <a href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/?m=product&s=list&orderby=4<?php if (! empty ( $this->_tpl_vars['get_city'] )): ?>&province=<?php echo $this->_tpl_vars['get_city']; ?>
<?php endif; ?><?php if (! empty ( $this->_tpl_vars['id'] )): ?>&id=<?php echo $this->_tpl_vars['id']; ?>
<?php endif; ?>" <?php if ($this->_tpl_vars['orderby'] == 4): ?>  class="on" <?php endif; ?>   >价格高优先</a><span class="line">|</span>
                                            <a href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/?m=product&s=list&orderby=5<?php if (! empty ( $this->_tpl_vars['get_city'] )): ?>&province=<?php echo $this->_tpl_vars['get_city']; ?>
<?php endif; ?><?php if (! empty ( $this->_tpl_vars['id'] )): ?>&id=<?php echo $this->_tpl_vars['id']; ?>
<?php endif; ?>" <?php if ($this->_tpl_vars['orderby'] == 5): ?>  class="on" <?php endif; ?>   >价格低优先</a><span class="line">|</span>
                                            <?php else: ?>
                                            <a href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/?m=product&s=list<?php if (! empty ( $this->_tpl_vars['get_city'] )): ?>&city=<?php echo $this->_tpl_vars['get_city']; ?>
<?php endif; ?><?php if (! empty ( $this->_tpl_vars['id'] )): ?>&id=<?php echo $this->_tpl_vars['id']; ?>
<?php endif; ?>" <?php if (empty ( $this->_tpl_vars['orderby'] )): ?>  class="on" <?php endif; ?>   >全部</a><span class="line">|</span>
                                            <a href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/?m=product&s=list&orderby=3<?php if (! empty ( $this->_tpl_vars['get_city'] )): ?>&city=<?php echo $this->_tpl_vars['get_city']; ?>
<?php endif; ?><?php if (! empty ( $this->_tpl_vars['id'] )): ?>&id=<?php echo $this->_tpl_vars['id']; ?>
<?php endif; ?> " <?php if ($this->_tpl_vars['orderby'] == 3): ?>  class="on" <?php endif; ?>   >更新时间</a><span class="line">|</span>
                                            <a href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/?m=product&s=list&orderby=4<?php if (! empty ( $this->_tpl_vars['get_city'] )): ?>&city=<?php echo $this->_tpl_vars['get_city']; ?>
<?php endif; ?><?php if (! empty ( $this->_tpl_vars['id'] )): ?>&id=<?php echo $this->_tpl_vars['id']; ?>
<?php endif; ?>" <?php if ($this->_tpl_vars['orderby'] == 4): ?>  class="on" <?php endif; ?>   >价格高优先</a><span class="line">|</span>
                                            <a href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/?m=product&s=list&orderby=5<?php if (! empty ( $this->_tpl_vars['get_city'] )): ?>&city=<?php echo $this->_tpl_vars['get_city']; ?>
<?php endif; ?><?php if (! empty ( $this->_tpl_vars['id'] )): ?>&id=<?php echo $this->_tpl_vars['id']; ?>
<?php endif; ?>" <?php if ($this->_tpl_vars['orderby'] == 5): ?>  class="on" <?php endif; ?>   >价格低优先</a><span class="line">|</span>
                                            <?php endif; ?>
                                    </div>
                                </div>
                            </div>

                        </div>

                        <!-- 正文 begin -->


                        <div class="underway">
                            <dl>

                                <?php $_from = $this->_tpl_vars['info']['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['vo']):
?>
                                <dd class="">
                                    <p class="p1">
                                        <a class="fl" href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/?m=product&s=detail&id=<?php echo $this->_tpl_vars['vo']['id']; ?>
">
                                        <img class="fl" src="<?php echo $this->_tpl_vars['vo']['pic']; ?>
" alt="<?php echo $this->_tpl_vars['vo']['pname']; ?>
" width="190" height="260"></a>
                                    </p>
                                    <p class="p2"><a href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/?m=product&s=detail&id=<?php echo $this->_tpl_vars['vo']['id']; ?>
"><?php echo ((is_array($_tmp=$this->_tpl_vars['vo']['pname'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 20, '...') : smarty_modifier_truncate($_tmp, 20, '...')); ?>
</a></p>
                                    <p class="p3">
                                        <span>¥<b><?php echo $this->_tpl_vars['vo']['price']; ?>
</b></span><em><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['vo']['spot'])) ? $this->_run_mod_handler('get_spot_name', true, $_tmp) : get_spot_name($_tmp)))) ? $this->_run_mod_handler('truncate', true, $_tmp, 8, '') : smarty_modifier_truncate($_tmp, 8, '')); ?>
</em>
                                    </p>
                                    <?php if ($this->_tpl_vars['now_time'] > $this->_tpl_vars['vo']['performance_end_time']): ?>
                                    <p class="p4h" style="height: 40px;">
                                        <span class="dao"><?php echo ((is_array($_tmp=$this->_tpl_vars['vo']['performance_start_time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")); ?>
</span>
                                        <a href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/?m=product&s=detail&id=<?php echo $this->_tpl_vars['vo']['id']; ?>
">立即购买</a>
                                    </p>
                                    <?php else: ?>
                                    <p class="p4" style="height: 40px;">
                                        <span class="dao"><?php echo ((is_array($_tmp=$this->_tpl_vars['vo']['performance_start_time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")); ?>
</span><a href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/?m=product&s=detail&id=<?php echo $this->_tpl_vars['vo']['id']; ?>
">立即购买</a>
                                    </p>
                                    <?php endif; ?>
                                </dd>
                                <?php endforeach; endif; unset($_from); ?>

                            </dl>
                        </div>


                        <!--分页代码状态开始-->
                        <div class="main_mod_page clear" id="pageinfo" style="margin-left: 150px;">
                            <?php echo $this->_tpl_vars['info']['page']; ?>

                        </div>
                        <!-- 正文 end -->
                    </div>
                </div>
            </div>
        </div>	



    <script type="text/javascript">

        $(function() {
            $(".underway dl dd .p4").hover(function() {
                $(this).animate({height: "90px"})
            }, function() {
                $(this).animate({height: "40px"})
            })
        })
    </script>
    <script>
        $(document).ready(function() {
            var attrid = $("#attrid").val();
            var destid = $("#destid").val();

            //属性选中
            var attrArr = attrid.split('_');
            for (i = 0; i < attrArr.length; i++)
            {
                $.STOURWEB.search_attr_selected(".filter_con", "a", attrArr[i], 'on');
            }

        });
    </script>